<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:c="http://java.sun.com/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core">

    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link href="#{facesContext.externalContext.request.contextPath}/css/default.css" rel="stylesheet" type="text/css" />
        <link href="#{facesContext.externalContext.request.contextPath}/css/cssLayout.css" rel="stylesheet" type="text/css" />
        <title>CABCC</title>
    </head>

    <body class="center">

        <div id="top" class="top">
            <div class="banner">
            </div>
            <div class="menu">
                <rich:toolBar>
                    <rich:toolBarGroup>
                        <h:form>
                            <a4j:commandLink value="página principal" action="goto_index" />
                            <!--<a4j:commandLink value="evento" />-->
                            <a4j:commandLink value="bolsas" />
                            <a4j:commandLink value="membros" action="goto_membros" />
                            <a href="http://localhost/mediaWiki/index.php/P%C3%A1gina_principal">wiki</a>
                            <a4j:commandLink value="fale conosco" action="goto_faleconosco" />
                        </h:form>
                        <c:if test="#{LoginManager.verificaLogado}">
                            <c:if test="#{LoginManager.usuarioLogado.perfil.perfil == 'ADMINISTRADOR'}">
                                <h:form>
                                    <rich:dropDownMenu value="administração">
                                        <f:facet name="label">
                                            <h:outputText value="administração"/>
                                        </f:facet>
                                        <rich:menuItem value="cargos" action="goto_administrar_cargos" />
                                        <rich:menuItem value="membros" action="goto_administrar_membros" />
                                        <rich:menuItem value="mensagens" action="goto_administrar_mensagens" />
                                    </rich:dropDownMenu>
                                </h:form>
                            </c:if>
                        </c:if>
                    </rich:toolBarGroup>
                    <rich:toolBarGroup location="right" >
                        <ui:include src="../compositions/login-items.xhtml" />
                    </rich:toolBarGroup>
                </rich:toolBar>
            </div>
        </div>

        <div id="content" class="content">
            <ui:insert name="content"></ui:insert>
        </div>

        <div id="rodape" class="rodape">
            <p>
                
            </p>
        </div>

    </body>

</html>
